package com.liangwj.springbootrabbitmq.rabbit.ontToMany;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <b>Description:</b> rabbitMq onetomany receiver <br/>
 * @author Lingwenjun
 * @date 2019/1/4-16:32
 * @version 1.0
 */
@Component
@RabbitListener(queues = "oneToMany")
public class OneToManyReceiver_1 {

    @RabbitHandler
    public void receiver(String oneToMany) {
        System.out.println("Receiver_1 = " + oneToMany);
    }
}
